package com.igeek.boot.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @package com.igeek.boot.entity
 * @Description 商品类
 * @Author LittlePunk [296526219@qq.ccom]
 * @Version 2022.1
 * @Date 2023/12/20 19:47
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("商品类")
//进行缓存需要进行序列化操作
public class Items /*implements Serializable */{

    @ApiModelProperty("商品编号")
    @TableId(type = IdType.AUTO)
    private Integer id;

    private String name;
    private double price;
    private String detail;
    private String pic;
    private LocalDateTime createtime;
}
